package com.robert.textdemo;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;

/**
 * @author: robert
 * @date: 2017-11-23
 * @time: 10:47
 * @说明:
 */
public class SecondDialog extends Dialog {
    public SecondDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_second);
        this.setCanceledOnTouchOutside(false);
        findViewById(R.id.cancel).setOnClickListener(v -> dismiss());
    }
}
